package test02;

/**
 * @author zhu
 * @date 2024-03-21
 */
public class BankThread extends Thread{
    private Account account;
    private double money;

    public BankThread() {
    }

    public BankThread(Account account,double money) {
        this.account = account;
        this.money = money;
    }

    @Override
    public void run() {
        account.TakeMoney(account.getUserName(),money);
    }
}
